package cn.rzpt.demo.entity;

/**
 * 对应数据库的tb_address数据表
 * @author zsm
 *
 */
public class Address {
	private int id;
	private String contact;
	private String address;
	private String phone;
	private String userId;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Override
	public String toString() {
		// TODO 重写Object的toString方法
		StringBuffer sb = new StringBuffer();
		sb.append("{");
		sb.append("id:").append("\"").append(id).append("\",");
		sb.append("contact:").append("\"").append(contact).append("\"");
		sb.append("address:").append("\"").append(address).append("\"");
		sb.append("phone:").append("\"").append(phone).append("\"");
		sb.append("userId:").append("\"").append(userId).append("\"");
		sb.append("}");
		
		return sb.toString();
	}
	
}
